home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 09 Racing and Sports AI / 04 Adzima / aiVehicle.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-11-14  |  734 b   |  31 lines

  1. #ifndef VEHICLE_H
  2. #define VEHICLE_H
  3.  
  4. #include "aiMath.h"
  5. #include "aiObstacle.h"
  6.  
  7. class Vehicle : public aiObstacle 
  8. {
  9.     public:
  10.         Vehicle(){};
  11.         void Reset();
  12.         void Init(int nId,char* pGeoFile);
  13.  
  14.         bool Stuck();            // return true when the vehicle is stuck.
  15.  
  16.         void SetSteering(float fSteering);
  17.         void SetBrake(float m_fBrake);
  18.         void SetThrottle(float m_fThrottle);
  19.         void SetTransmissionToReverse();
  20.  
  21.         Matrix34& GetMatrix();    // Return the vehicle's orientation/position matrix
  22.         Vector3 GetBoxMin();    // Get the bounding box information.
  23.         Vector3 GetBoxMax();
  24.         float Speed();            // Return the vehicles current speed
  25.  
  26.         int GetRoomId();        // Return the current room that this vehicle is in.
  27.  
  28. };
  29.  
  30. #endif
  31.